
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
    <style>
        canvas{
            margin:0 auto;
            padding-top: 200px;
            animation-name: love;
            animation-duration: 60s;
            animation-timing-function: ease;
        }
        @keyframes love
        {
            from{transform: translate(0) rotateY(180deg);}
            50%{transform: translate(1000px) rotateY(180deg);}
            51%{transform: translate(1000px) rotateY(0deg);}
            to{transform: translate(0) rotateY(0deg);}
        }
        
       
    </style>
</head>
<body>
   <canvas id="one" width="700px" height="700px"></canvas> 
</body>
</html>
<script>
 var m=document.getElementById('one').getContext('2d');
 //var m=su.getContext('2d');//千万不要写错单词，获取画布和画笔必须要在html页面中否则不会生效,分开写也行，合起来写也行,并且不能写在获取js文件的script中。
</script> 
<script  src="w1.js/ty15.js"> 
</script>
